import request from '@/plugins/axios'

// 获取首页统计数据
export const getHomeCounter = async (): Promise<HomeCounterData> => {
  const resp = await request({
    url: 'admin/counter'
  })
  return resp
}

// 获取首页图表数据
export const getHomeChartData = async (): Promise<HomeChartData> => {
  const resp = await request({
    url: 'admin/charts'
  })
  return resp
}
